package com.bluebench.bigul.domain;

import java.util.HashMap;
import java.util.Map;

public class FormData {
	
	
	private Map<String,String> fieldMap; //Key = {fieldID,String} here fieldId is same as DocumentElement.id
	
	public FormData(){
		fieldMap = new HashMap<String,String>();
	}	
	
	public Map<String, String> getFieldMap() {
		return fieldMap;
	}
	public void setFieldMap(Map<String, String> fieldMap) {
		this.fieldMap = fieldMap;
	}
	public void addFieldValue(String fieldId,String fieldValue){
		fieldMap.put(fieldId,fieldValue);
	}	
	public String getFieldValue(String fieldId){
		return fieldMap.get(fieldId);
	}
	
	public boolean isKey(String str){
		return fieldMap.containsKey(str);
	}

}
